package com.scm.persist.mybatis;

import com.scm.persist.model.ScmOrderInvoice;
import com.scm.persist.model.ScmOrderInvoiceExample;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

public interface ScmOrderInvoiceMapper {
    int countByExample(ScmOrderInvoiceExample example);

    int deleteByExample(ScmOrderInvoiceExample example);

    int deleteByPrimaryKey(Long id);

    int insert(ScmOrderInvoice record);

    int insertSelective(ScmOrderInvoice record);

    List<ScmOrderInvoice> selectByExampleWithRowbounds(ScmOrderInvoiceExample example, RowBounds rowBounds);

    List<ScmOrderInvoice> selectByExample(ScmOrderInvoiceExample example);

    ScmOrderInvoice selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") ScmOrderInvoice record, @Param("example") ScmOrderInvoiceExample example);

    int updateByExample(@Param("record") ScmOrderInvoice record, @Param("example") ScmOrderInvoiceExample example);

    int updateByPrimaryKeySelective(ScmOrderInvoice record);

    int updateByPrimaryKey(ScmOrderInvoice record);
}
